namespace TaskKernel.Domain.Services.Permission
{
    public class AdminExecutorCreateS : IPermission<DepartmentPermissions>
    {
        #region IPermission<DepartmentPermissions> Members

        public Permissions GetPermissions(DepartmentPermissions app)
        {
            if ((app.Role == RoleEnum.Admin) || (app.Role == RoleEnum.Executor) || (app.Role == RoleEnum.AdminWithoutMessage))
                return new PermissionsAdminExecutorCreatePage();
            return new Permissions();
        }

        #endregion
    }
}